#ifndef _client_backend_h
#define _client_backend_h

#define QUIT 		0
#define CONTINUE	1

/* simple formula data type */
typedef struct formula
{
	unsigned char opcode;
	double op1;
	double op2;
	double ans;
} formulaT;

/* process input and request calculation to the server */
int do_client(void); 

/* set signals handler */
void setSignalCatcher(void);

/* makes an add operation */
double add(double op1, double op2); 

/* makes a substract operation */
double sub(double op1, double op2); 

/* makes a multiplication operation */
double mult(double op1, double op2); 

/* makes a division operation */
double divide(double op1, double op2); 

#endif

